<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="d" uri="http://dgg.net/jsp/jstl/core" %>
<head>
    <meta charset="UTF-8">
    <title>资质详情</title>
    <%@ include file="../../../header.jsp" %>
</head>
<div class="body-main">
    <!--证书信息 start-->
    <div class="finan-panel">
        <div class="finan-tit">
            <b>资质信息</b>
        </div>
        <div class="panel-table">
            <form action="">
                <table class="layui-table table-info">
                    <tbody>
                    <tr>
                        <th>资质类型</th>
                        <td>${qualification.certificateType}</td>
                        <th>资质名称</th>
                        <td>${qualification.certificateName}</td>
                        <th>资质等级</th>
                        <td>${qualification.certificateLevel}</td>
                        <th>适用范围</th>
                        <td>${qualification.applicationScope}</td>
                    </tr>
                    <tr>
                        <th>企业名</th>
                        <td>${qualification.companyName}</td>
                        <th>资质编号</th>
                        <td>${qualification.certificateNo}</td>
                        <th>成本价格</th>
                        <td><fmt:formatNumber type="number" maxFractionDigits="2" pattern="###,###0.00" value="${empty qualification.receiptPrice ? 0:qualification.receiptPrice}"></fmt:formatNumber>
                            <%--<span id="receiptPrice">${qualification.receiptPrice}</span>--%></td>
                        <th>资质过期时间</th>
                        <td>${qualification.certificateExpiryTime}</td>
                    </tr>
                    <tr>
                        <th>地区</th>
                        <td>
                            <c:if test="${qualification.areaProvince!=null and qualification.areaProvince!=''}">
                                ${qualification.areaProvince}/
                            </c:if>
                            ${qualification.certificateArea}</td>
                        <th>资质状态</th>
                        <td>${qualification.certificateStatus}</td>
                    </tr>
                    </tbody>
                </table>
            </form>
        </div>
    </div>
    <!--证书信息 end-->
    <!--附件信息 start-->
    <div class="finan-panel">
        <div class="finan-tit">
            <b>附件信息</b>
        </div>
        <div class="panel-main">
            <div class="panel-main">
                <ul class="data-warp" id="previewImg">
                    <li>
                        <%--<a href="javascript:void(0)" class="upload-button" id="upload" ></a>--%>
                        <input type="hidden" id="upload">
                        <!-- is-remove 是否可以删除 0-不可以       is-down 是否可以下载 -->
                        <input type="hidden" name="file" multiple="" id="annexUpload" data-type="credential" data-fileid="${qualification.baseId}" is-remove="0" is-down-load="0" is-magnify="0" load-file="1">
                    </li>
                </ul>
            </div>
        </div>
        <d:hasUrlAuth authCode="ZZSC_PIC_SEE_DOWN">
            <input type="hidden" name="isShow" value="1">
        </d:hasUrlAuth>
    </div>
    <!--附件信息 end-->
</div>
<%@ include file="../../../footer.jsp" %>
<script src="${rootUrl}/static/js/zzsc/common/files/annex.js?v=${version}" type="text/javascript" charset="utf-8"></script>
<script>
    var isShow = $('[name="isShow"]').val();
    if (!checkIsEmpty(isShow)) {
        $("#annexUpload").attr("is-down-load", '1');
        $("#annexUpload").attr("is-magnify", '1');
    }
    //调用示例
    layer.photos({
        photos: '#previewImg'
        ,anim: 5 //0-6的选择，指定弹出图片动画类型，默认随机（请注意，3.0之前的版本用shift参数）
    });
</script>

